package com.vir.ai.admin.utils;

import cn.hutool.json.JSONUtil;
import com.vir.ai.admin.constant.ApisConstant;
import com.vir.ai.admin.constant.UcConstant;
import com.vir.ai.admin.controller.vo.api.ApiUserRedisBean;
import com.vir.ai.core.constants.RedisConstant;
import com.google.common.base.Strings;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.connection.StringRedisConnection;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Slf4j
@Component
public class RedisUtils {

    private final StringRedisTemplate stringRedisTemplate;

    private final StringRedisTemplate testStringRedisTemplate;

    private final StringRedisTemplate productStringRedisTemplate;

    public RedisUtils(@Qualifier(ApisConstant.DEVELOP_STRING_REDIS_TEMPLATE) StringRedisTemplate stringRedisTemplate,
                         @Qualifier(ApisConstant.TEST_STRING_REDIS_TEMPLATE) StringRedisTemplate testStringRedisTemplate,
                         @Qualifier(ApisConstant.PRODUCTION_STRING_REDIS_TEMPLATE) StringRedisTemplate productStringRedisTemplate) {
        this.stringRedisTemplate = stringRedisTemplate;

        this.testStringRedisTemplate = testStringRedisTemplate;
        this.productStringRedisTemplate = productStringRedisTemplate;
    }
 
}
